#include "Videolabel.h"
#include <QDebug>

VideoLabel::VideoLabel(QWidget *parent):QLabel(parent)
{
    setMouseTracking(true);
}
void VideoLabel::mouseMoveEvent(QMouseEvent *ev)
{
    x=ev->x();
    y=ev->y();
    emit mouseMoveSignal(x,y,isOutside);
}

void VideoLabel::enterEvent(QEvent *ev)
{
    isOutside = false;
    emit mouseMoveSignal(x,y,isOutside);
}

void VideoLabel::leaveEvent(QEvent *event)
{
    isOutside = true;
    emit mouseMoveSignal(x,y,isOutside);
}
